]> dgit.raspbian.org Git - gnome-shell.git/commit
screenShield: Fix pointer motion signal handler leak
authorRay Strode <rstrode@redhat.com>
Tue, 29 Sep 2020 02:28:08 +0000 (22:28 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 8 Oct 2020 13:46:12 +0000 (09:46 -0400)
commit6758746f25c734033a41ce8bbdd06da64773e679
treec0d592c2fd02f1db120b459b29d8a98f5f607ef0
parent2b44fa893f990f0f611d4b9d60c171649ec5cfc8
screenShield: Fix pointer motion signal handler leak

The screen shield code listens for motion events on the stage
so that it can hide the pointer until the user moves the mouse.

Unfortunately, if the user never moves the mouse, the signal
handler connection gets leaked.

This commit makes sure the connection gets disconnected when the
shield goes away.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1459
js/ui/screenShield.js